export const routerMap = [
  {
    path: "/admin",
    name: "admin",
    redirect: "/admin/home",
    component: () => import("../views/index/index.vue"),
    meta: {
      keepAlive: false,
    },
    children: [
      {
        path: "/admin/userManagment/ETC",
        name: "ETC",
        meta: {
          keepAlive: false,
          menuName: "ETC",
          icon: "Postcard",
        },
        children: [
          {
            path: "/admin/userManagment",
            redirect: "/admin/userManagment/userList",
            meta: {
              id: "",
              keepAlive: false,
              menuName: "用户信息",
              icon: "Printer",
            },
            children: [
              {
                path: "/admin/userManagment/userList",
                name: "用户列表",
                component: () => import("../views/userManagment/userList.vue"),
                meta: {
                  id: "",
                  keepAlive: false,
                  menuName: "用户列表",
                  icon: "DocumentCopy",
                },
              },
              {
                path: "/admin/userManagment/userDetail",
                name: "用户详情",
                component: () => import("../views/userManagment/userDetail.vue"),
                meta: {
                  id: "",
                  keepAlive: false,
                  menuName: "用户详情",
                  icon: "DocumentCopy",
                },
              },
            ],
          },
          {
            path: "/admin/accountManagment",
            name: "账户信息",
            meta: {
              id: "",
              keepAlive: false,
              menuName: "账户信息",
              icon: "Printer",
            },
            children: null,
          },
          {
            path: "/admin/cardManagment",
            name: "卡片信息",
            meta: {
              keepAlive: false,
              menuName: "卡片信息",
              icon: "Printer",
            },
            children: null,
          },
        ],
      },
      {
        path: "/admin/home",
        name: "home",
        component: () => import("../views/home/index.vue"),
        meta: {
          keepAlive: false,
          menuName: "测试页面",
          icon: "EditPen",
        },
        children: null,
      },
      {
        path: "/admin/config",
        name: "config",
        component: () => import("../views/config/configRouter.vue"),
        redirect: "/admin/config/configRouter",
        meta: {
          keepAlive: false,
          menuName: "配置",
          icon: "EditPen",
        },
        children: [
          {
            path: "/admin/config/configRouter",
            name: "configRouter",
            component: () => import("../views/config/configRouter.vue"),
            redirect: "",
            meta: {
              keepAlive: false,
              menuName: "路由配置",
              icon: "EditPen",
            },
          },
        ],
      },
    ],
  },
];
